#include "api\pentax_api.h"
#include <windows.h>

int main(int argc, char* argv[])
{
	c_pentax_slr *pslr=c_pentax_slr::Instance();

	if(pslr==0) return 1;

	printf("Model: %s\n",pslr->model().c_str());

	std::string cpu_v=pslr->cpu_fw_ver();
	std::string dsp_v=pslr->dsp_fw_ver();
	printf("CPU firmware version: %s\n",cpu_v.c_str());
	printf("DSP firmware version: %s\n",dsp_v.c_str());

	c_pentax_slr::date_time_t dt=pslr->date_time();
	printf("Date of camera: %s\n",dt.to_str().c_str());

	int irz;
	int buf[512]={0},a1[512]={0},a2[512]={0},a3[512]={0},a4[512]={0};
	int b1,b2,b3,b4;
	//irz=pslr->CamGetBattLife(buf);
	//pslr->status_full();
	//unsigned int a=0;
	//pslr->CamRelease(&a);
	//pslr->exposure_mode( c_pentax_slr::PSLR_EXPOSURE_MODE_P);
	//pslr->status_full();
	//pslr->iso(100);
	//pslr->status_full();
	printf("Release count: %d\n",pslr->release_count());

	pslr->FreeInst();
	return 0;
}

